#include "Base.h"

using namespace model;

Base::Base(void) : Entity() {};

Base::Base(int id, std::string &image, const Point &position)
{
	this->id = id;
	imagePath = image;
	x = position.x();
	y = position.y();
	life = BASE_MAX_LIFE;
	name = "Player name";
}

Base::~Base(void)
{
}

void Base::setName(string name)
{
	this->name = name;
}

string Base::getName(void)
{
	return name;
}

void Base::setLife(int life)	
{
	this->life = life;
}

int Base::getLife(void)
{
	return life;
}

void Base::decreaseLife(int powerDamage)
{
	this->life -= powerDamage;
	if (this->life <= 0)
	{
		this->life = 0;
	}
}

string Base::getImagePath(void)
{
	return this->imagePath;
}

void Base::setImagePath(string path)
{
	this->imagePath = path;
}

void Base::updatePositions(double currentTime)
{
}
